﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmlicencias.aspx.cs" Inherits="UI.Secretaria.frmlicencias"  EnableEventValidation="false" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 236px;
        }
        .style3
        {
            width: 105px;
        }
        .style4
        {
        }
        .style5
        {
            width: 80px;
        }
        .style6
        {
            width: 25px;
        }
        .style7
        {
            width: 52px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     


    <h1 align="left">Registro de Licencias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;</h1>

    <table class="style1" style="width: 87%">
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td class="style3">
                Semestre</td>
            <td class="style2">
        <asp:DropDownList ID="Ddl_Semestre" runat="server" style="margin-left: 0px" 
                    Width="217px">
        </asp:DropDownList>
            </td>
            <td class="style5">
                Tipo</td>
            <td class="style4">
        <asp:DropDownList ID="ddlTipo" runat="server" style="margin-left: 0px" Width="174px">
            <asp:ListItem>TODOS</asp:ListItem>
            <asp:ListItem Value="01">Licencia</asp:ListItem>
            <asp:ListItem Value="03">Amp. de Licencia</asp:ListItem>
            <asp:ListItem Value="02">Retirado</asp:ListItem>
            <asp:ListItem Value="08">R. por Deficiencia Acad.</asp:ListItem>
        </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td class="style3">
                Codigo/Nombre</td>
            <td class="style2">
        <asp:TextBox ID="TxtCodigo" runat="server" 
            ontextchanged="TxtSalida_TextChanged" Height="23px" Width="216px"></asp:TextBox>
            </td>
            <td class="style5">
&nbsp;&nbsp;Descripción</td>
            <td class="style4">
        <asp:TextBox ID="TxtDesc" runat="server" 
            ontextchanged="TxtInicio_TextChanged" Height="23px" Width="166px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnBuscar" runat="server" Height="31px" 
                onclick="btnBuscar_Click" Text="Buscar" Width="87px" />
            </td>
            <td>
                <asp:Button ID="BtnNnuevo" runat="server" Height="31px" 
                onclick="BtnNnuevo_Click" Text="Nuevo" Width="87px" />
            </td>
        </tr>
    </table>
    <p align="right">
        <asp:ImageButton ID="BtnExportar"  
            HorizontalAlign="Right" runat="server" ImageAlign="Right" 
        ImageUrl="~/Imagenes/excel.jpg" Width="30px" onclick="BtnExportar_Click" 
            Visible="False" />
   
    </p>
            <asp:GridView ID="Gridrequerimientos" runat="server" HorizontalAlign="Center" 
                Width="867px" AllowPaging="True" AutoGenerateColumns="False" 
                onpageindexchanged="Gridrequerimientos_PageIndexChanged" 
                onpageindexchanging="Gridrequerimientos_PageIndexChanging" 
                onselectedindexchanged="Gridrequerimientos_SelectedIndexChanged" 
                
    onselectedindexchanging="Gridrequerimientos_SelectedIndexChanging">
                <Columns>
                    <asp:BoundField DataField="Semestre" HeaderText="Semestre" />
                    <asp:BoundField DataField="Codigo" HeaderText="Codigo" />
                    <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                    <asp:BoundField DataField="Condicion" HeaderText="Condicion" />
                    <asp:BoundField DataField="Estado" HeaderText="Estado" />
                    <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" />
                    <asp:BoundField DataField="OBS" HeaderText="Observaciones" />
                    <asp:CommandField HeaderText="Revisar" SelectText="Revisar" 
                        ShowSelectButton="True" />
                </Columns>
            </asp:GridView>
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />


    <asp:ModalPopupExtender ID="mdArticulos" runat="server"
    TargetControlID="btn"
    PopupControlID="Panel1"              
    BackgroundCssClass="modalBackground">
    
    
    </asp:ModalPopupExtender>

    <asp:HiddenField ID="btn" runat="server" />    

    
    <asp:Panel ID="Panel1" CssClass="modalPopup" runat="server" Width="629px">

        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
                    <br />
                    Registro de Licencias .
                    <asp:Label ID="Lbl_Id" runat="server" Text="000000"></asp:Label>
                    <br />
                    Nombre:
                    <asp:Label ID="lbl_nombre" runat="server" Text="pepelucho"></asp:Label>
                    <br />
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Estado&nbsp;&nbsp;
                    <asp:TextBox ID="TxtEstado2" runat="server" Enabled="False" Height="22px" 
                        ontextchanged="TxtFechaSal_TextChanged" Width="129px"></asp:TextBox>
                    <asp:CalendarExtender ID="TxtEstado2_CalendarExtender" runat="server" 
                        Format="dd/MM/yy , hh:mm" TargetControlID="TxtEstado2">
                    </asp:CalendarExtender>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
                    <br />
                    &nbsp;Descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                    <asp:TextBox ID="TxtDesc2" runat="server" Height="72px" 
                        ontextchanged="TxtFechaSal_TextChanged" Width="449px" 
                        style="margin-left: 0px"></asp:TextBox>
                    <asp:CalendarExtender ID="TxtDesc2_CalendarExtender" runat="server" 
                        Format="dd/MM/yy , hh:mm" TargetControlID="TxtDesc2">
                    </asp:CalendarExtender>
                    <br />
                    <br />
                    Observaciones&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtObservaciones" runat="server" Height="46px" 
                ontextchanged="txtObservaciones_TextChanged" Width="449px" 
                        style="margin-left: 4px"></asp:TextBox>
                    <br />
            <br />

                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
                        ID="btnCancelar" runat="server" Height="31px" onclick="btnCancelar_Click" 
                        Text="Cerrar" Width="87px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                    <br />

            <br />
        </ContentTemplate>
        </asp:UpdatePanel>       
        
       

    
    </asp:Panel>









    <br />
    </asp:Content>
